﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cmsservice.Entity;

namespace cmsservice.DAL
{
    public class HeadlineContentDal
    {
        public List<HeadlineContentList> GetLst(string pageid)
        {
            string sql = "select * from dbo.HeadlineContent where PageId=@pageid";
            Tools tool = new Tools();
            tool.AddSqlParameter("pageid", System.Data.SqlDbType.VarChar, pageid);
            return SqlHelper.GetDataByColumnsLst<HeadlineContentList>(DBConn.CMS, sql, tool.GetSqlParameters());
        }
    }
}
